package com.lemon.smartsafetynew.util.ledger;

import java.util.List;

/**
 * Created by Andrew on 2017/9/14.
 */

public class LedgerUtils {


    public static final String[] mPatrolRecordsSpinnerArray = new String[] {
            "全部巡查", "异常巡查", "正常巡查"
    };

    public static String getStatus(String data) {
        if(mPatrolRecordsSpinnerArray[0].equals(data)) {
            return "";
        } else if(mPatrolRecordsSpinnerArray[1].equals(data)) {
            return "2";
        } else {
            return "1";
        }
    }

    public static String getState(String data) {
        if(mPatrolRecordsSpinnerArray[0].equals(data)) {
            return "";
        } else if(mPatrolRecordsSpinnerArray[1].equals(data)) {
            return "3";
        } else {
            return "3";
        }
    }

}
